﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.HVAC
{
	public class IdSelectionFilter : ISelectionFilter
	{
		public IdSelectionFilter(int elemId)
		{
			this.eId = elemId;
		}

		public bool AllowElement(Element elem)
		{
			return elem.Id.IntegerValue == this.eId;
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}

		private int eId = -1;
	}
}
